package com.usefullc.system.vo;
import com.usefullc.common.domain.BaseDomain;
import com.usefullc.system.domain.JobTemplate;
import com.usefullc.system.service.component.extend.ApiField;
import com.usefullc.system.service.component.extend.DictField;
import com.usefullc.system.service.component.extend.EnumField;
import com.usefullc.system.service.component.extend.UsefulField;
import com.usefullc.system.service.component.extend.ApiField;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 定时任务模板返回实体
 * @author: 星空
 * @date: 2022-09-06
 */
@Data
public class JobTemplateVo extends BaseDomain {

//useful_auto_generate_section_start

    
    @ApiModelProperty(notes = "ID")
    private Long id;

    @ApiField(url = "/user/anonymous/tenant/listAll", id = "id", value = "name")
    @ApiModelProperty(notes = "租户")
    private Long tenantId;

    
    @ApiModelProperty(notes = "名称")
    private String name;

    
    @ApiModelProperty(notes = "删除状态")
    private Boolean delState;

    @DictField(value = "jobTemplateCategory")
    @ApiModelProperty(notes = "分类")
    private Integer category;

    @EnumField(value = "jobTemplateStatusEnum")
    @ApiModelProperty(notes = "运行状态")
    private Integer status;

    @DictField(value = "yesNoNumber")
    @ApiModelProperty(notes = "是否可用")
    private Integer enabled;

    
    @ApiModelProperty(notes = "时间表达式")
    private String cron;

    @EnumField(value = "jobTemplatePeriodEnum")
    @ApiModelProperty(notes = "时间周期")
    private Integer period;

    
    @ApiModelProperty(notes = "描述")
    private String description;

    
    @ApiModelProperty(notes = "参数")
    private String param;

    @UsefulField(format = "yyyy-MM-dd")
    @ApiModelProperty(notes = "创建时间")
    private Date gmtCreate;

    @UsefulField(format = "yyyy-MM-dd")
    @ApiModelProperty(notes = "修改时间")
    private Date gmtModified;


//useful_auto_generate_section_end


}
